@extends('layouts.admin_modal')

@section('content')
    <div class="box-body">
        <div class="form-group">
            <label for="input-title" class="col-sm-2 control-label">栏目名称</label>

            <div class="col-sm-10">
                {!! get_input_html('info[title]', get_value($detail, 'title', ''), ['id'=>'input-title']) !!}
            </div>
        </div>

        <div class="form-group">
            <label for="input-pid" class="col-sm-2 control-label">所属栏目</label>

            <div class="col-sm-10">
                <select name="info[pid]" id="input-pid" class="form-control">
                    {!! get_select_tree($categoryList) !!}
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="input-is_page" class="col-sm-2 control-label">是否单网页</label>
            <div class="col-sm-10">
                {!! get_radio_html(config('admin.systems.category_is_page'), 'info[is_page]', get_value($detail, 'is_page', 0), ['id'=>'input-title']) !!}
            </div>
        </div>


        <div class="form-group">
            <label for="input-description" class="col-sm-2 control-label">角色描述</label>
            <div class="col-sm-10">
                <textarea class="form-control" name="info[description]" id="input-description" cols="30" rows="10" placeholder="请输入角色描述信息……">{{ get_value($detail, 'description', '') }}</textarea>
            </div>
        </div>

    </div>

    <input type="hidden" name="info[id]" value="{{ get_value($detail, 'id') }}">
@endsection